package com.fatmeraid.service;

import com.fatmeraid.common.model.PageResult;
import com.fatmeraid.domain.FarmerApplication;
import com.fatmeraid.vo.PaginationVo;
import com.fatmeraid.vo.farmerApplication.AuditVo;
import com.fatmeraid.vo.farmerApplication.RegistrationVo;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface FarmerApplicationService {

	/**
	 * 提交农户申请
	 * */
	 Integer submitApplication(RegistrationVo registrationVo);

	 /**
	 * 审核农户申请
	 * */
	boolean auditApplication(AuditVo auditVo);


	/**
	 * 获取农户申请列表
	 * */
	PageResult<FarmerApplication> getFarmerApplicationList(PaginationVo paginationVo);

	FarmerApplication getFarmerApplicationById(Long id);
}
